import cv2
import numpy
img = cv2.imread('1.jpeg')
roi=img[20:30,30:40]
img[30:40,50:60]=roi

cv2.namedWindow("Demo")
cv2.imshow('Demo',img)
cv2.waitKey(0)
cv2.destroyAllWindows()
